package com.ifkytek.ninegridview

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.alipay.sdk.auth.AlipaySDK
import kotlinx.android.synthetic.main.activity_main.*
import com.vondear.rxtool.view.RxToast
import com.vondear.rxtool.interfaces.OnSuccessAndErrorListener
import com.vondear.rxtool.RxTimeTool
import com.vondear.rxfeature.module.alipay.AliPayModel
import com.vondear.rxfeature.module.alipay.AliPayTool
import com.vondear.rxfeature.module.wechat.pay.WechatPay
import com.vondear.rxfeature.module.wechat.pay.WechatPayModel
import android.opengl.ETC1.getWidth
import android.view.WindowManager
import android.view.Display




class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        button.setOnClickListener {
            ShowNewsActivity.startActivity(this)
        }
        button2.setOnClickListener { ReleaseMessageActivity.startActivity(this) }

        button3.setOnClickListener { InDavatorActivity.startActivity(this) }


        button4.setOnClickListener {
        }

        button5.setOnClickListener {
//           var  WechatPayModel  =  WechatPayModel()
//            WechatPay.getInstance().doPay("",object : WechatPay.WXPayResultCallBack{
//                override fun onSuccess() {
//                }
//                override fun onCancel() {
//                }
//
//                override fun onError(p0: Int) {
//                }
//
//            })

        }
        button6.setOnClickListener{
            val newInstance = MyWheelViewDialog.newInstance(3)
            newInstance.show(fragmentManager,"EditNameDialog")
        }
    }
}
